﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace HengTong.DataAccess.Migrations
{
    /// <inheritdoc />
    public partial class 更新待办索引 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_SysTodoCenter_ActivityId_CreateBy",
                table: "SysTodoCenter");

            migrationBuilder.DropIndex(
                name: "IX_SysTodoCenter_ActivityId_CreateBy_Step",
                table: "SysTodoCenter");

            migrationBuilder.CreateIndex(
                name: "IX_SysTodoCenter_CreateBy_CreateTime",
                table: "SysTodoCenter",
                columns: new[] { "CreateBy", "CreateTime" });

            migrationBuilder.CreateIndex(
                name: "IX_SysTodoCenter_WorkflowId_CreateBy",
                table: "SysTodoCenter",
                columns: new[] { "WorkflowId", "CreateBy" });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropIndex(
                name: "IX_SysTodoCenter_CreateBy_CreateTime",
                table: "SysTodoCenter");

            migrationBuilder.DropIndex(
                name: "IX_SysTodoCenter_WorkflowId_CreateBy",
                table: "SysTodoCenter");

            migrationBuilder.CreateIndex(
                name: "IX_SysTodoCenter_ActivityId_CreateBy",
                table: "SysTodoCenter",
                columns: new[] { "ActivityId", "CreateBy" });

            migrationBuilder.CreateIndex(
                name: "IX_SysTodoCenter_ActivityId_CreateBy_Step",
                table: "SysTodoCenter",
                columns: new[] { "ActivityId", "CreateBy", "Step" });
        }
    }
}
